﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ZOVNP.Model.Abstracts;

namespace ZOVNP.Engine
{
    [DomainObject(typeof(IPrice))]
    public partial class Price : IPrice
    {
        private IDomainCollection<IPriceItem> _priceItemsLocker;

        public Price()
        {
            _priceItemsLocker = new SmartCollection<PriceItem, IPriceItem>(this, PriceItems);
        }

        IDomainCollection<IPriceItem> IPrice.PriceItems
        {
            get { return _priceItemsLocker; }
        }
    }
}
